package com.sjd.mall.mapper;

import com.sjd.common.utils.sql.BaseMapper;
import com.sjd.mall.domain.SjdAccountAddrDO;
import com.sjd.mall.domain.SjdAccountDO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * @ProjectName: sjd
 * @Package: com.sjd.protal.account.mapper
 * @ClassName: AccountRechargeOrder
 * @Author: genglong
 * @Description: 账户信息
 * @Date: 2022/1/11 10:49
 * @Version: 1.0
 */
@Mapper
public interface SjdAccountMapper extends BaseMapper<SjdAccountDO>{

    /**
     * 根据会员id查询账户信息
     * @param memberId
     * @return
     */
    SjdAccountDO findAccountByMemberId(@Param("memberId") Long memberId);

    /**
     * 修改账户信息
     * @param sjdAccountDO
     * @return
     */
    int updateAccount(SjdAccountDO sjdAccountDO);
}
